From: Thomas Gleixner Date: Mon, 24 Mar 2014 00:23:35 +0000 (-0700) Subject: Input: hp_sdc - use del_timer_sync() in exit path X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~1098^2~723 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5fcd4d2c119309366aad5d8287e1329d9dee02e1;p=linux-4.9.git Input: hp_sdc - use del_timer_sync() in exit path Make sure that no callback is running before we teardown the module. Signed-off-by: Thomas Gleixner Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/serio/hp_sdc.c b/drivers/input/serio/hp_sdc.c index d7a7e54f6465..852858e5d8d0 100644 --- a/drivers/input/serio/hp_sdc.c +++ b/drivers/input/serio/hp_sdc.c @@ -984,7 +984,7 @@ static void hp_sdc_exit(void) free_irq(hp_sdc.irq, &hp_sdc); write_unlock_irq(&hp_sdc.lock); - del_timer(&hp_sdc.kicker); + del_timer_sync(&hp_sdc.kicker); tasklet_kill(&hp_sdc.task);